//package cn.vc.videoservice.config;
//
//import org.springframework.amqp.core.*;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class RabbitMqConfig {
//    @Bean
//    public DirectExchange directExchange() {
//        return new DirectExchange("video.direct", true, false);
//    }
//    @Bean
//    public Queue queue() {
//        return QueueBuilder.durable("video.queue.publish").build();
//    }
//    @Bean
//    public Binding binding() {
//        return BindingBuilder.bind(queue()).to(directExchange()).with("publish");
//    }
//}
